/*
 Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 SPDX-License-Identifier: Apache-2.0
*/

@use '../utils/theming' as theming;
@use '../tokens' as awsui;

$control-border-radius: awsui.$border-radius-input;

// Use for options in dropdowns
$option-padding-vertical: awsui.$space-xxs;
$option-padding-with-border-placeholder-vertical: calc(
  #{$option-padding-vertical} + (#{awsui.$border-item-width} - #{awsui.$border-divider-list-width})
);

$group-option-padding-vertical: awsui.$space-xs;
$group-option-padding-with-border-placeholder-vertical: calc(
  #{$group-option-padding-vertical} + (#{awsui.$border-item-width} - #{awsui.$border-divider-list-width})
);

$control-padding-vertical: awsui.$space-scaled-xxs;
$control-padding-horizontal: awsui.$space-field-horizontal;
$control-padding: $control-padding-vertical $control-padding-horizontal;

$invalid-control-left-border: awsui.$border-invalid-width;
$invalid-control-left-padding: calc(
  #{$control-padding-horizontal} - (#{$invalid-control-left-border} - #{awsui.$border-width-field})
);

$control-icon-vertical-offset: calc(50% - #{awsui.$line-height-body-m} / 2);
$control-icon-horizontal-offset: $control-padding-horizontal;
$control-icon-horizontal-padding: awsui.$space-field-icon-offset;
